package com.gooluke.game.controller;

import com.gooluke.game.service.CustomService;
import com.gooluke.game.strategy.CustomStrategy;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gooluke
 * description
 * datetime 2025-05-18 2:06
 */
@RestController
@RequestMapping("/custom")
public class CustomController {

    @RequestMapping("/query/{points}")
    public String getCustom(@PathVariable("points") int points) {
        CustomService customService = CustomStrategy.getCustomService(points);
        return customService.getCustom();
    }

}
